# @Filename:    Sample1-add
# @Author:      王佳伟
# @Time:        2025-02-28 9:25
# @Describe:    列表去重
import unittest


def unique_elements(lst):
    return list(set(lst))


class TestUniqueElements(unittest.TestCase):
    def test_unique_elements(self):
        self.assertEqual(unique_elements([1, 2, 2, 3]), [1, 2, 3])
        self.assertEqual(unique_elements([1, 1, 1, 1]), [1])
        self.assertEqual(unique_elements([]), [])


if __name__ == '__main__':
    unittest.main()
